package com.cg.service.impl;

import com.cg.entity.Banner;
import com.cg.dao.BannerMapper;
import com.cg.service.BannerService;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * (Banner)表服务实现类
 *
 * @author chengong
 * @since 2024-01-07 15:36:46
 */
@Service("bannerService")
public class BannerServiceImpl implements BannerService {
    @Resource
    private BannerMapper bannerMapper;


    /**
     * 查询轮播图列表
     */
    @Override
    public List<Banner> queryBannerList() {
        return bannerMapper.queryBannerList();
    }

    /**
     * 根据id获取轮播图详情
     */
    @Override
    public Banner queryBannerByBannerId(Integer bannerId) {
        return bannerMapper.queryBannerByBannerId(bannerId);
    }
}
